home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Science
/
RLaB
/
help
/
load
< prev
next >
Wrap
Text File
|
1994-04-25
|
938b
|
31 lines
load:
Syntax: load( "filename" )
Description:
Load opens the file name denoted by string argument and reads
it's contents as though a user were typing the contents at the
command line. Thus a user can use load() to enter data,
user-functions, or execute repetitive commands saved in a
file. there is no limit to the number of functions, or regular
statements that can exist in a file called by load().
Immediately after the the input is read, load() closes the
file, so that subsequent calls to load() will re-open the
file.
Load requires that a complete file specification be provided.
If the file is in the present working directory, then only the
filename is necessary otherwise, a complete path is required.
In most cases the rfile command is simpler to use.
Example:
// load the roots() function into memory
> load( "roots.r" )
Load can now be used from within functions, and loops.
See Also: FILES, rfile